Refactor: remove test against type.