Revert "Add method registerExtensionOnce"

This reverts commit dfefc50630f17cb8d8f2abda71885db313c52903.