Refactors attribute assignment on Profile