Simplify UIUtils.headerSparkPage signature.

Also some other cleanup.