Clean up .sdef file