Refactored constants in BFS