Modularised the functionality to set up user roles.