In main.py there is duplicated logic in process_a and process_b. Extract the common block into a helper function called _filter_positive_double that both functions call. Keep the original function names and behavior unchanged.
