Though employment contracts aren’t terribly common, they can be a way to attract and retain top talent.