Refactor repeated code in BTTree
Replace tabs with spaces, remove unnecessary list construction, pass parameter hash in buildMetaTree