Refactor: Split into two if statements and inline variables

Change-Id: I2760c5d57272698307e96e3c3cc6d62467ca342a
diff --git a/core/net/src/main/java/org/onosproject/net/intent/impl/compiler/OpticalCircuitIntentCompiler.java b/core/net/src/main/java/org/onosproject/net/intent/impl/compiler/OpticalCircuitIntentCompiler.java
index 148e0bc..5dd4f69 100644
--- a/core/net/src/main/java/org/onosproject/net/intent/impl/compiler/OpticalCircuitIntentCompiler.java
+++ b/core/net/src/main/java/org/onosproject/net/intent/impl/compiler/OpticalCircuitIntentCompiler.java
@@ -558,17 +558,19 @@
     }
 
     private boolean isMultiplexingSupported(ConnectPoint src, ConnectPoint dst) {
-        if (!isTributarySlotBehaviourSupported(src.deviceId()) ||
-                !isTributarySlotBehaviourSupported(dst.deviceId())) {
+        if (!isTributarySlotBehaviourSupported(src.deviceId())) {
             return false;
         }
 
-        ConnectPoint srcStaticPort = staticPort(src);
-        if (srcStaticPort != null) {
+        if (!isTributarySlotBehaviourSupported(dst.deviceId())) {
             return false;
         }
-        ConnectPoint dstStaticPort = staticPort(dst);
-        if (dstStaticPort != null) {
+
+        if (staticPort(src) != null) {
+            return false;
+        }
+
+        if (staticPort(dst) != null) {
             return false;
         }