refactoring: moved "add_all_visible_ops_to_env" method from helpers to bmachine.