Remove pub and priv attributes of key model