Extract attributes to method