Refactoring the files and switching to RestApi Only (Removing any reference to Wp XML-RPC)