Refactoring start and end publication date filter