First step of merging the Frontend filter handling into the core, some refactoring is still due.