Combine duplicate lines into the mixing macro