Refactor repository reference loading via remote filters
Refactor repository template loading via remote filters