Refactor filter => registerFilter, filterEntity => filterRole, filePath to getFilePath