Moved list modifier function out, so it can be reused. REOL-37