refactoring: moved walk array related code to proper compilation units