Removed old API endpoints and functions