1) White spaces made consistent
2) Common functionality extracted into one function using templates, so that redundant code is removed
3) This aids in reduced source code space and also possible extensions of the same functionality into different types without needing to copy paste code.