Devectorize norm calculation and avoid code dublication.