Got rid of some repetition in my animation helper.