Consistent namespace closing in math