Move TreeModelFilter implementation to .cpp file.