DRY'd some block creation code