In any action involving a dispute arising out of a lease, if unconscionability is put into issue by a party or by the court, the parties shall be afforded a reasonable opportunity to present evidence as to the setting, purpose and effect of the lease or any provision thereof to aid the court in making the determination. If a court, as a matter of law, finds a lease or any provision thereof was unconscionable when made, the court may refuse to enforce the lease, enforce the remainder of the lease without the unconscionable provision or limit the application of any unconscionable provision to avoid an unconscionable result.
K.S.A. 66-536