de-duped code in Role Assignments controller