Extract model base class into independent namespace