Great to hear you resolved the issue. I’m pretty certain you can remove the code. Role capabilities are persistent because they are saved in the database.