Normalize method of getting category title across methods. Add return types to functions.