LPS-44719 Add new methods return the more flexible key-value pairs instead of boolean arrays
LPS-44719 Deprecate old methods
LPS-44719 Apply changes
LPS-44719 Remove portlet from layout only when it wasn't selected at all