Simplify TopItem example code.