Refactored portlets availability conditions