Handle schemas and api versions in base class.