Bitcoin: Move to use template groups.

CC @russellholt