I agree it's a delicate issue to legislate. I think we could look to music licensing as a possible parallel; this hasn't stifled creativity yet it compensates creators for the use and remixing of their work. Look to the recent court decision on Ed Sheeran's use of the chord progression for reasonable use of prior art.