Simplified CodeService interface.
Switched BlockPresenter from FunctionService to CodeService