Refactored metadata.base.BaseObject: Moved validation into a dedicated nested class