Refactored Config repo to not use singleton