Hierarchical repository abstraction layer