refine resource, remove the extension of resource dependency.