You need a better file splitting design:
Put pcode in its own bmx and import it to both or make the class pcode within a private block of the bmx
Put pcode in its own bmx and import it to both or make the class pcode within a private block of the bmx