refactor(accordion): transclude function in compile is deprecated.

Closes #1789