Factor out redundant code in resource collections
Merge pull request #10 from allolex/refactor_collections

Factor out redundant code in resource collections