Remove `with-optimization-settings` macro and supporting function and special variables. Closes #148 See merge request !224