Refactor get_proficiency