Refactor code to use Template Pattern on each Activity