Replace puts with logger
Remove logger as we don't use it
Remove unused method
Handle default repository creation