Refactor biographies controller for readability