Refactor extrapolation methods.
Refactor interpolaition.