Refactor create role function.
Merge pull request #35 from julianespinel/hotfix-refactor-create-role

Refactor create role function.