code cleanup in authorizations controller