[PATCH 3/4] tap: Restructure in tap_pasta_input()