extract @Restricted from proper location