Refactor behavior event collision solution.