make processor it's own module; pass collection id to processor (extract method).