Split API into separate files