Remove unused method: attribute_before_type_cast