move the custom repo into a helper function

Signed-off-by: Alfredo Deza <alfredo.deza@inktank.com>