Copyright only covers the expressive parts and not the utilitarian parts:
https://en.wikipedia.org/wiki/Abstraction-Filtration-Compari...
https://en.wikipedia.org/wiki/Idea–expression_distinction
https://h2o.law.harvard.edu/cases/5004
Most of your code is probably not subject to copyright in the first place, regardless of license.