Decouple code