Revert "convert to using $plugin instead of $module"

This reverts commit 52d116dbb7301c6b27c6d3f6e2b119cb18487604.