Refactor debug plugin initialization dependency