Refactor ApiOptions for reusability