Refactoring PratilipiTemplate.