Stop silencing type errors and remove code that caused them