Remove redundant magnitude computation