[refactoring] Replaced repeated code with Degree to Radius.