How to remove the pulley?

I have one of these old DC618 nailers and there seems to be something wrong with the controle module. In order to get to it, I will need to remove the pulley and can’t seem to find a way to do so

crwdns2934089:0crwdne2934089:0 crwdns2934093:0crwdne2934093:0

crwdns2934109:0crwdne2934109:0

crwdns2889612:0crwdne2889612:0 0
crwdns2934285:0crwdne2934285:0