I notice that in some films, they will have someone (or a team of people) being credited with the "story" or "screen story", and then there will be another person or team credited with actually writing the screenplay. Why is that so? Is it for legal reasons?