Simplify the way how chip type is determined. Instead of managing insane