Move API functionality into its own class, and define an Auth Interface.