Refactor expander method template (#1784)
Refactor expander method template (#1784)

Merged PR #1784.

GoogleCloudPlatform/magic-modules,GoogleCloudPlatform/magic-modules,GoogleCloudPlatform/magic-modules,GoogleCloudPlatform/magic-modules,GoogleCloudPlatform/magic-modules