core: Use OsRepository interface instead explicit impl

Change-Id: I00533ea628613b3f2872e76d05c8bb024b238867
Signed-off-by: Roy Golan <rgolan@redhat.com>