Consolidate resource partial directories and partial_for helper