Extracted CLI, refactorings: separated BearScript from execution.