refactor and document the MetaMappingExpander class