Move api methods into their own folder