Clean up analysis and filtering pipeline, improve process flow