Refactor two lists into a single list partial