Refactory Functions to Install Flow Entry on Switch