Deleted api.rb since it introduces the circular dependency.