Convert shims from listeners to beans.