Code restructuralization