Reduced duplication in UI tests.