Refactoring to store attribution information in menu object.