Tony refactor to remove repetition in my append.