Refactor duplication out of NSObject helpers