Melt data to avoid repeated lines of code.