[1/n] Creates OptPropFactory to simplify OptIn and OptOut properties

Allow to handle OptIn and OptOut properties in lazy and simpler
way.

Bug: 318801382
Test: atest WmTests:OptPropFactoryTest

Change-Id: Id9d0e8892daa7dc8129eaee44d59e74de045ea3c
2 files changed