Externalizing parts of geometry API for use by selector plugins