Cleaned up generation of step edit/create UI.