A lot of the British constitution is specified in the legislature. It isn’t precedent that determines who the next monarch is, or how frequently there are elections. Though there are indeed conventions like the way the House of Lords must treat budget bills.