Refactoring: Move filterManager.js logic to stateManager.js and
urlManager.js