Change type_declaration case block to a method