Switch resource to a submodule