[Extra zoom mode] Refactor input view controller presentation and dismissal helpers