refactoring (magic number)