Isn't that a coupling hub with the allen head set screw? TYPICALLY, it needs to come off before you compress the spring. Once the spring is compressed and held down, then the retaining ring and washer are removed, which keeps the spring from flying off.
Just in case your retaining ring and/or washer are missing or not doing their job, you may have to assume the spring will fly off as soon as the hub is removed. By all means, secure that spring before trying to remove the hub. Once the spring is compressed enough to be sure it is not pressing on the hub and secured, some penetrating oil in the set screw hole should help you get the hub removed from the shaft.
One other suggestion about penetrating oil. With the spring compressed and secured, remove set screw and apply penetrating oil in hole. Then re-insert set screw to use it to force penetrating oil between hub and shaft.
Edited to correct "spring clip" to "retaining ring"
