Move filters and hooks classes into compiler pass