Refactoring bean file.