De-duplicate and centralize some of the track/plugin UI code