Refactoring CTFE interpreter code