Fix duplicated code
Fix duplicated code

mysociety/popit,openstate/popit,Sinar/popit,mysociety/popit,openstate/popit,Sinar/popit,openstate/popit,mysociety/popit,openstate/popit,mysociety/popit,Sinar/popit,mysociety/popit,Sinar/popit