Refactor Hello world implementations