Refactor pipeline for easier unit testing.
Implement custom class literals as input and filter specification