Refactoring for gitignore