parse: remove obsolete type switch