refactor(facility-edit): put assigns into variables