Move all filter related functions to Filters class.