Move polygon testing function to modules with world data.