bml: drop extern from headers
bml/common: extract duplicated code into helper

Add a helper for property filtering.