Source code refactoring. Extracted out common functionalities into merged functions .