Constrained transport and adaptive mesh refinement in the Black Hole Accretion Code