Refactor wizard hidden inputs into a helper method