Remove attributes if not applicable