Renamed IdPk to domainObject, extracted BaseMethods to a file