class CommonBeans {

  @Bean
  CleanupService cleanupService(
      List<GenericPathHandler> pathHandlers,
      @Value("${properties.cleanup-page-size}") int pageSize,
      @Value("${properties.dry-run-enabled}") boolean dryRunEnabled) {
    return new PagingPathCleanupService(pathHandlers, pageSize, dryRunEnabled);
  }

}