ProtectionForm: Stop using global objects

Also use Config instead of global variables

Change-Id: Idad1d0648f8ab6aba472845df4fef8ef83043bb2
Merge "ProtectionForm: Stop using global objects"