Generifying servlet remover logic
Added a filter remover implementation