Cleanup of the Resource model