Refactoring student bean