Uproszczanie kodu