Separate adding and setting attributes.
Refactor Transform.rb again.