Neaten FilterVertex code.