Clean up directive attributes