Extract registerPush method.