Refector a bit to remove extra slice iteration and splat call
Refector a bit to remove extra slice iteration and splat call

This yields a small bit of performance improvement when building the
defaults from constraints, specially considering that it's rather common
for constraints to be empty.

Also, there's a bit of duplicated code in here that I have to check
before extracting.

kamipo/rails,lcreid/rails,jeremy/rails,schuetzm/rails,kddeisz/rails,mechanicles/rails,aditya-kapoor/rails,arjes/rails,schuetzm/rails,Edouard-chin/rails,yasslab/railsguides.jp,travisofthenorth/rails,stefanmb/rails,rails/rails,assain/rails,amoody2108/TechForJustice,iainbeeston/rails,utilum/rails,kddeisz/rails,betesh/rails,brchristian/rails,illacceptanything/illacceptanything,joonyou/rails,iainbeeston/rails,vassilevsky/rails,aditya-kapoor/rails,vassilevsky/rails,xlymian/rails,shioyama/rails,Edouard-chin/rails,kmcphillips/rails,MSP-Greg/rails,koic/rails,bradleypriest/rails,mechanicles/rails,coreyward/rails,Edouard-chin/rails,flanger001/rails,yhirano55/rails,flanger001/rails,rails/rails,Stellenticket/rails,vassilevsky/rails,tjschuck/rails,untidy-hair/rails,kirs/rails-1,palkan/rails,yasslab/railsguides.jp,pvalena/rails,kmayer/rails,georgeclaghorn/rails,mijoharas/rails,odedniv/rails,BlakeWilliams/rails,utilum/rails,Vasfed/rails,mijoharas/rails,illacceptanything/illacceptanything,elfassy/rails,ngpestelos/rails,georgeclaghorn/rails,baerjam/rails,samphilipd/rails,flanger001/rails,maicher/rails,illacceptanything/illacceptanything,sealocal/rails,rails/rails,tjschuck/rails,gcourtemanche/rails,ngpestelos/rails,maicher/rails,felipecvo/rails,BlakeWilliams/rails,fabianoleittes/rails,prathamesh-sonpatki/rails,rafaelfranca/omg-rails,notapatch/rails,kddeisz/rails,gavingmiller/rails,prathamesh-sonpatki/rails,rbhitchcock/rails,riseshia/railsguides.kr,pschambacher/rails,pvalena/rails,illacceptanything/illacceptanything,rossta/rails,lcreid/rails,matrinox/rails,joonyou/rails,BlakeWilliams/rails,bradleypriest/rails,gfvcastro/rails,printercu/rails,MichaelSp/rails,untidy-hair/rails,printercu/rails,amoody2108/TechForJustice,deraru/rails,kmayer/rails,mtsmfm/railstest,richseviora/rails,kmayer/rails,georgeclaghorn/rails,arunagw/rails,Spin42/rails,yalab/rails,printercu/rails,lucasmazza/rails,gfvcastro/rails,mohitnatoo/rails,EmmaB/rails-1,joonyou/rails,tgxworld/rails,yahonda/rails,assain/rails,flanger001/rails,printercu/rails,kamipo/rails,ttanimichi/rails,Stellenticket/rails,tgxworld/rails,88rabbit/newRails,bogdanvlviv/rails,gfvcastro/rails,yahonda/rails,Envek/rails,untidy-hair/rails,rafaelfranca/omg-rails,untidy-hair/rails,mtsmfm/rails,pvalena/rails,gavingmiller/rails,rails/rails,stefanmb/rails,EmmaB/rails-1,yawboakye/rails,stefanmb/rails,mechanicles/rails,yahonda/rails,arjes/rails,kaspth/rails,BlakeWilliams/rails,Spin42/rails,notapatch/rails,eileencodes/rails,vipulnsward/rails,yhirano55/rails,kachick/rails,palkan/rails,aditya-kapoor/rails,amoody2108/TechForJustice,lucasmazza/rails,fabianoleittes/rails,eileencodes/rails,notapatch/rails,yalab/rails,vipulnsward/rails,kamipo/rails,iainbeeston/rails,illacceptanything/illacceptanything,deraru/rails,gauravtiwari/rails,Envek/rails,vipulnsward/rails,richseviora/rails,bolek/rails,gavingmiller/rails,odedniv/rails,kenta-s/rails,baerjam/rails,gauravtiwari/rails,elfassy/rails,aditya-kapoor/rails,kirs/rails-1,prathamesh-sonpatki/rails,MSP-Greg/rails,tijwelch/rails,Erol/rails,coreyward/rails,sergey-alekseev/rails,assain/rails,georgeclaghorn/rails,ngpestelos/rails,xlymian/rails,kenta-s/rails,eileencodes/rails,Vasfed/rails,Vasfed/rails,illacceptanything/illacceptanything,samphilipd/rails,illacceptanything/illacceptanything,kachick/rails,arjes/rails,elfassy/rails,kmcphillips/rails,tjschuck/rails,alecspopa/rails,richseviora/rails,Sen-Zhang/rails,vipulnsward/rails,illacceptanything/illacceptanything,tijwelch/rails,riseshia/railsguides.kr,illacceptanything/illacceptanything,yhirano55/rails,eileencodes/rails,yawboakye/rails,gcourtemanche/rails,MSP-Greg/rails,alecspopa/rails,sergey-alekseev/rails,esparta/rails,betesh/rails,mtsmfm/rails,ledestin/rails,brchristian/rails,esparta/rails,kenta-s/rails,shioyama/rails,illacceptanything/illacceptanything,shioyama/rails,jeremy/rails,lcreid/rails,MichaelSp/rails,rossta/rails,alecspopa/rails,starknx/rails,shioyama/rails,Stellenticket/rails,matrinox/rails,marklocklear/rails,repinel/rails,illacceptanything/illacceptanything,mathieujobin/reduced-rails-for-travis,mtsmfm/railstest,jeremy/rails,bogdanvlviv/rails,yawboakye/rails,kachick/rails,pschambacher/rails,MSP-Greg/rails,Envek/rails,maicher/rails,ledestin/rails,joonyou/rails,starknx/rails,Stellenticket/rails,travisofthenorth/rails,bolek/rails,palkan/rails,repinel/rails,riseshia/railsguides.kr,hanystudy/rails,yhirano55/rails,mijoharas/rails,baerjam/rails,starknx/rails,yalab/rails,odedniv/rails,bogdanvlviv/rails,sergey-alekseev/rails,felipecvo/rails,kirs/rails-1,Sen-Zhang/rails,gauravtiwari/rails,felipecvo/rails,gfvcastro/rails,palkan/rails,bradleypriest/rails,yahonda/rails,mohitnatoo/rails,Erol/rails,kddeisz/rails,iainbeeston/rails,voray/rails,Sen-Zhang/rails,lucasmazza/rails,deraru/rails,rbhitchcock/rails,brchristian/rails,Erol/rails,tijwelch/rails,illacceptanything/illacceptanything,rafaelfranca/omg-rails,yawboakye/rails,xlymian/rails,mechanicles/rails,illacceptanything/illacceptanything,voray/rails,kmcphillips/rails,illacceptanything/illacceptanything,illacceptanything/illacceptanything,gcourtemanche/rails,betesh/rails,fabianoleittes/rails,tgxworld/rails,marklocklear/rails,pschambacher/rails,riseshia/railsguides.kr,lcreid/rails,mohitnatoo/rails,koic/rails,bolek/rails,yalab/rails,mtsmfm/rails,notapatch/rails,88rabbit/newRails,marklocklear/rails,tgxworld/rails,bogdanvlviv/rails,assain/rails,travisofthenorth/rails,travisofthenorth/rails,samphilipd/rails,deraru/rails,betesh/rails,88rabbit/newRails,koic/rails,schuetzm/rails,repinel/rails,tjschuck/rails,rossta/rails,esparta/rails,esparta/rails,ledestin/rails,hanystudy/rails,sealocal/rails,pvalena/rails,EmmaB/rails-1,Vasfed/rails,arunagw/rails,mathieujobin/reduced-rails-for-travis,jeremy/rails,prathamesh-sonpatki/rails,Edouard-chin/rails,utilum/rails,Erol/rails,mohitnatoo/rails,yasslab/railsguides.jp,mtsmfm/railstest,utilum/rails,sealocal/rails,ttanimichi/rails,Spin42/rails,MichaelSp/rails,hanystudy/rails,schuetzm/rails,kaspth/rails,mathieujobin/reduced-rails-for-travis,rbhitchcock/rails,kaspth/rails,ttanimichi/rails,arunagw/rails,coreyward/rails,matrinox/rails,arunagw/rails,Envek/rails,kmcphillips/rails,fabianoleittes/rails,yasslab/railsguides.jp,voray/rails,repinel/rails,baerjam/rails