- Moved the openInSameWindow function from MapComponent.js to a new file openInSameWindow.js in the utils directory. - Updated MapComponent.js to import and use the openInSameWindow function from the new file. - This change improves code modularity and readability.