refactor job repository-related classes to prepare for JdbcRepository.