Remove old reference frame code