Move api fns into own namespace.