Function definition reformatting to coding standard