Schema cleanup, population of resource instances from templates, when
resource is created