Cleanup ordering of resources