Refactored Fred::Client to remove duplication in API endpoint creation.