moved Resource to own subPackage