Revert demo
Extract use_role for Credential.
find_best_role can now be implemented by simply invoking use_role.
Add docstring and whitespace to clarify intention.