I noticed similar code in the VisitFragmentController, so perhaps a buildVisit(Patient, Location) factory method? (It's not worth overthinking this, so if there's no obvious best option, never mind.)