Centralize InputParameter SQL generation.