Refactor code - put all the common method into the Spritz module.