Major refactoring: split the monolithic memory_mapping module into many smaller parts and created an appropriate directory structure.