Moves a member of a companion object to the corresponding class.