Andrew Mountbatten Windsor will be stripped of his last remaining military position, according to the UK defence minister.