Refactor celsius conversion method