Replacing resource definition by dependency