refactor "services" folder into "repositories" folder