Self-similarity of the dipole-multipole transition in rapidly rotating dynamos