introduce CodeRepository: move filter definition to CodeRepository definition