refactors auth service controller into services