Refactor sequence editor factories using lambda