If the commission, upon its own motion or upon complaint, after providing reasonable notice and opportunity for hearing, finds that an oil or gas pipeline facility is making or granting an unreasonable preference or advantage to any person or subjecting any person to an unreasonable prejudice or discrimination, the commission may prescribe rules to end the discrimination or the commission may itself prescribe the allocation of the service until it determines the discrimination can be avoided by appropriate rule or agreement.