A few methods in both Element1D and Element2D look alike, if they are not the same.
Two things can be done in order to optimize this:
- Generalize both methods, make them behave the same way and move them to the parent class (Element)
- Move them to the parent class directly if they are the exact same.