Moving geometry check methods outside of classes.