move some code from the absences-edit controller to a new service, the service will also be used in the account controller