Moving playlist specific logic out of utils file