Extract method to build block