Refactoring and settin opacity