Refactor kodu