Organize opping APIs into separate source file