encapsulate getting repository ready inside the google repository