nitmetrics: implements metrics as global phases