[mapper] moved ndb independent methods to BaseMapper