Utility method for module ID extraction