Use context instead of static access

@VicDeo this fix will be required soon as I'm fixing FileActions stuff.

We should avoid static access to attributes of fileActions in the future.