Extract replying into a helper fun