factor consumer into seperate module to ease testing

Signed-off-by: Bjorn Westergard <bwestergard@Hueco.internal.ngpvan.net>