Introducing Collective Order Into Density Functional Theory And Modelling The Magnetic Reorientation Transition In Ca₃Ru₂O₇