Refactored achievements and their endpoints as per the feedback by Scott.