refactor(api): move out options from object to constructor