For the purpose of applying the provisions of Article 16 the competent authority of the United Kingdom shall take account only of insurance periods completed under the legislation of either Party which would be taken into account for the determination of pensions under the legislation of the United Kingdom if they were completed under that legislation and shall, where appropriate, take into account in accordance with that legislation, insurance periods completed by a spouse or former spouse as the case may be.