Preserve module information when using create_resources