[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
(cherry picked from commit 6d3104d895bd5aaf45043ed79dd16d5ef591b59b)
Merged-In: Id9d0e8892daa7dc8129eaee44d59e74de045ea3c
2 files changed