Refactor post and draft object creation
Refactor post and draft object creation

De-duplicate object creation between posts and drafts. Inject the name
dependency through a parameter

egobrightan/jekyll,goragod/jekyll,18F/jekyll,doubleday/jekyll,rlugojr/jekyll,eninya/jekyll,ZDroid/jekyll,tobscure/jekyll,18F/jekyll,monxim/monxim.github.io,hartmel/jekyll,bsmr-ruby/jekyll,leichunxin/jekyll,0x00evil/jekyll,xantage/jekyll,AtekiRyu/jekyll,greent2008/jekyll,jeffkole/jekyll,dansef/jekyll,aarvay/jekyll,likong/jekyll,xiaoshaozi52/jekyll,shliujing/jekyll,xcatliu/jekyllcn,trungvothanh/jekyll,adilapapaya/jekyll,wentixiaogege/jekyll,doubleday/jekyll,foocoder/jekyll,x-way/jekyll,saitodisse/jekyll,johnnycastilho/jekyll,PepSalehi/jekyll,chrisfinazzo/jekyll,dezon/jekyll,leichunxin/jekyll,hartmel/jekyll,jaybe-jekyll/jekyll,jmknoll/jekyll,chinayin/jekyll,hubsaysnuaa/jekyll,SQS2/Test,chinayin/jekyll,fengsmith/jekyllcn,wadaries/jekyll,brint/jekyll,isathish/jekyll,oresmus/jekyll,winndows/jekyll,sideci-sample/sideci-sample-jekyll,darwin/jekyll,gaosboy/jekyll,daniel-beck/jekyll,LeuisKen/jekyllcn,1gitGrey/jekyll,mrb/jekyll,liukaijv/jekyll,noikiy/jekyll,QuinntyneBrown/jekyll,greent2008/jekyll,martynbm/jekyll,zhangkuaiji/jekyllcn,x-way/jekyll,noikiy/jekyll,angeliaz/jekyll,royalwang/jekyll,angeliaz/jekyll,aarvay/jekyll,princeofdarkness76/jekyll,AnanthaRajuC/jekyll,alfredxing/jekyll,johnnycastilho/jekyll,jaybe-jekyll/jekyll,FlyingWHR/jekyll,Wirachmat/jekyll,indraj/jekyll,noikiy/jekyll,CorainChicago/jekyll,lazycai/lazycai.github.com,kimeng/jekyll,AnanthaRajuC/jekyll,penchan1218/jekyllcn,omeripek/jekyll,jmptrader/jekyll,tillgrallert/jekyll,Kinghack/kinghack.github.com,teju111/jekyll,mrb/jekyll,QuinntyneBrown/jekyll,FlyingWHR/jekyll,jmhardison/jekyll,gencer/jekyll,ducktyper/jekyll,fulldecent/jekyll,tylermachen/jekyll,howkj1/jekyll,ramoslin02/jekyll,ewinkler/jekyll,PepSalehi/jekyll,nemotan/jekyll,kuangyeheng/jekyll,tamouse/jekyll,indraj/jekyll,teju111/jekyll,Tyrion22/jekyll,jekyll/jekyll,xtymichael/jekyll,Strangehill/jekyll,digideskio/jekyll,digideskio/jekyll,teju111/jekyll,dansef/jekyll,leichunxin/jekyll,Tiger66639/jekyll,sanxore/sanxore.github.com,stevecrozz/jekyll,kimeng/jekyll,xtymichael/jekyll,jmptrader/jekyll,Strangehill/jekyll,ZainRizvi/jekyll,ls2uper/jekyll,akoeplinger/jekyll,schaazzz/jekyll,goragod/jekyll,AaronSikes/jekyll,CPVPLachlan/CPVP-Blog,anthonyrosengren/grasshoppergathering2.github-io,zsyed91/jekyll,getandpost/jekyll.github.io,backendeveloper/jekyll,oresmus/jekyll,matuzo/jekyll,tillgrallert/jekyll,chrisfinazzo/jekyll,SQS2/Test,alex-kovac/jekyll,codeclimate-testing/jekyll,gencer/jekyll,stomar/jekyll,winndows/jekyll,xcatliu/jekyllcn,richsoni/jekyll,sanxore/sanxore.github.com,honger05/jekyllcn,monxim/monxim.github.io,EddieDow/jekyll,krishnakalyan3/jekyll,ryanshaw/jekyll,gkunwar/gkunwar.github.io,Teino1978-Corp/jekyll,liukaijv/jekyll,saitodisse/jekyll,rajrathore/jekyll,SQS2/Test,cyberid41/jekyll,alfredxing/jekyll,UniFreak/jekyllcn,julienbourdeau/jekyll,m2candre/jekyll,MauroMrod/jekyll,rongl/jekyll,drobati/jekyll,PepSalehi/jekyll,Wirachmat/jekyll,anthonyrosengren/grasshoppergathering2.github-io,gaosboy/jekyll,brint/jekyll,nathanhorrigan1/webdeveloper,naughtyboy83/jekyll,floydpraveen/jekyll,rovrevik/jekyll,AaronSikes/jekyll,wadaries/jekyll,CorainChicago/jekyll,fengsmith/jekyll,vcgato29/jekyll,angeliaz/jekyll,kinlane/jekyll,jekyll/jekyll,mixxmac/jekyll,ZDroid/jekyll,alex-kovac/jekyll,pheuko/jekyll,eninya/jekyll,tugberkugurlu/jekyll,stomar/jekyll,pheuko/jekyll,garvitr/jekyll,liukaijv/jekyll,tomasdiez/jekyll,bsmr-ruby/jekyll,penchan1218/jekyllcn,tobscure/jekyll,sanxore/sanxore.github.com,isathish/jekyll,xantage/jekyll,goragod/jekyll,christophermanning/jekyll,marrujoalex/jekyll,abhilashhb/jekyll,jmepg/jekyll,xantage/jekyll,hiteshsuthar/jekyll,Strangehill/jekyll,pmarsceill/jekyll,fabulousu/jekyll,nickg33/jekyll,thejameskyle/jekyll,LeuisKen/jekyllcn,rebornix/jekyll,darwin/jekyll,chrisfinazzo/jekyll,shuber2/jekyll,wentixiaogege/jekyll,egobrightan/jekyll,tomjohnson1492/jekyll,zhangkuaiji/jekyllcn,floydpraveen/jekyll,nasht00/jekyll,ramoslin02/jekyll,nickg33/jekyll,chrisfinazzo/jekyll,lazycai/lazycai.github.com,desidude03/jekyll,nemotan/jekyll,supriyantomaftuh/jekyll,0x00evil/jekyll,CheekyFE/jekyll,tomjohnson1492/jekyll,fengsmith/jekyllcn,AaronSikes/jekyll,fulldecent/jekyll,vcgato29/jekyll,greent2008/jekyll,sasongkojati/jekyll,derekgottlieb/jekyll,yihangho/jekyll,pheuko/jekyll,jekyll/jekyll,lazycai/lazycai.github.com,ajhit406/jekyll,MjAbuz/jekyll,omeripek/jekyll,ReachingOut/jekyll,gynter/jekyll,alex-kovac/jekyll,mnuessler/jekyll,nemotan/jekyll,julienbourdeau/jekyll,stevecrozz/jekyll,christophermanning/jekyll,larryfox/jekyll,brint/jekyll,tamouse/jekyll,johnnycastilho/jekyll,lcustodio/lcustodio.github.io_base,imaustink/jekyll,fabulousu/jekyll,tareq-s/jekyll,ZainRizvi/jekyll,rlugojr/jekyll,zsyed91/jekyll,jaybe-jekyll/jekyll,drobati/jekyll,nateberkopec/jekyll,anthonyrosengren/grasshoppergathering2.github-io,martynbm/jekyll,xtymichael/jekyll,tugberkugurlu/jekyll,alihalabyah/jekyll,EddieDow/jekyll,tobscure/jekyll,rasa2011/rasa2011.github.io,nasht00/jekyll,kuangyeheng/jekyll,tomjohnson1492/jekyll,gynter/jekyll,schaazzz/jekyll,imaustink/jekyll,jmhardison/jekyll,dangaute/eng,vcgato29/jekyll,getandpost/jekyll.github.io,alex-kovac/jekyll,xiaoshaozi52/jekyll,naughtyboy83/jekyll,jmptrader/jekyll,howkj1/jekyll,pmarsceill/jekyll,desidude03/jekyll,krahman/jekyll,desidude03/jekyll,shuber2/jekyll,rlugojr/jekyll,xiongjungit/jekyll,yhironaka/yhironaka.github.io,doubleday/jekyll,darwin/jekyll,iRoxx/jekyll,LuoPX-15510486969/jekyll,jaroot32/jekyll,winndows/jekyll,bsmr-ruby/jekyll,fengsmith/jekyll,larryfox/jekyll,getandpost/jekyll.github.io,eloyesp/jekyll,superve/jekyll,UniFreak/jekyllcn,vidbina/jekyll,likong/jekyll,honger05/jekyllcn,trungvothanh/jekyll,Teino1978-Corp/Teino1978-Corp-jekyll,Wirachmat/jekyll,CheekyFE/jekyll,jmknoll/jekyll,penchan1218/jekyllcn,LeuisKen/jekyllcn,supriyantomaftuh/jekyll,aarvay/jekyll,x-way/jekyll,shuber2/jekyll,gencer/jekyll,htmelvis/jekyll,saitodisse/jekyll,nateberkopec/jekyll,derekgottlieb/jekyll,nasht00/jekyll,egobrightan/jekyll,julienbourdeau/jekyll,marrujoalex/jekyll,xcatliu/jekyllcn,dezon/jekyll,honger05/jekyllcn,sasongkojati/jekyll,ryanshaw/jekyll,likong/jekyll,shliujing/jekyll,mixxmac/jekyll,0x00evil/jekyll,ZainRizvi/jekyll,thejameskyle/jekyll,derekgottlieb/jekyll,tillgrallert/jekyll,xiongjungit/jekyll,18F/jekyll,rasa2011/rasa2011.github.io,schaazzz/jekyll,gkunwar/gkunwar.github.io,eloyesp/jekyll,fengsmith/jekyll,alihalabyah/jekyll,mrb/jekyll,fulldecent/jekyll,jmknoll/jekyll,Teino1978-Corp/jekyll,gaosboy/jekyll,Tiger66639/jekyll,CheekyFE/jekyll,xiebinhqy/jklly_china,ducktyper/jekyll,nickg33/jekyll,tareq-s/jekyll,trungvothanh/jekyll,alfredxing/jekyll,stomar/jekyll,gynter/jekyll,gencer/jekyll,akoeplinger/jekyll,htmelvis/jekyll,tomjohnson1492/jekyll,lcustodio/lcustodio.github.io_base,vidbina/jekyll,Kinghack/kinghack.github.com,1gitGrey/jekyll,noikiy/jekyll,nathanhorrigan1/webdeveloper,MjAbuz/jekyll,jmepg/jekyll,krahman/jekyll,jeffkole/jekyll,foocoder/jekyll,pmarsceill/jekyll,rebornix/jekyll,richsoni/jekyll,jmepg/jekyll,dezon/jekyll,jeffkole/jekyll,martynbm/jekyll,isathish/jekyll,FlyingWHR/jekyll,fulldecent/jekyll,MjAbuz/jekyll,rlugojr/jekyll,Tyrion22/jekyll,nasht00/jekyll,ramoslin02/jekyll,rajrathore/jekyll,xcatliu/jekyllcn,ryanshaw/jekyll,Tiger66639/jekyll,sasongkojati/jekyll,Strangehill/jekyll,rongl/jekyll,princeofdarkness76/jekyll,chiyodad/jekyll,larryfox/jekyll,harrissoerja/jekyll,omeripek/jekyll,hiteshsuthar/jekyll,thetaxman/jekyll,hubsaysnuaa/jekyll,garvitr/jekyll,alihalabyah/jekyll,stevecrozz/jekyll,fabulousu/jekyll,nathanhorrigan1/webdeveloper,xiebinhqy/jklly_china,goodtouch/jekyll,chinayin/jekyll,shliujing/jekyll,ls2uper/jekyll,AtekiRyu/jekyll,drobati/jekyll,tylermachen/jekyll,cyberid41/jekyll,jeffkole/jekyll,htmelvis/jekyll,darwin/jekyll,CPVPLachlan/CPVP-Blog,m2candre/jekyll,codeclimate-testing/jekyll,princeofdarkness76/jekyll,dangaute/eng,krishnakalyan3/jekyll,dangaute/eng,vidbina/jekyll,daniel-beck/jekyll,krishnakalyan3/jekyll,backendeveloper/jekyll,floydpraveen/jekyll,hubsaysnuaa/jekyll,gkunwar/gkunwar.github.io,thetaxman/jekyll,eloyesp/jekyll,rovrevik/jekyll,daniel-beck/jekyll,AnanthaRajuC/jekyll,adilapapaya/jekyll,MauroMrod/jekyll,xiebinhqy/jklly_china,zsyed91/jekyll,Tyrion22/jekyll,abhilashhb/jekyll,gencer/jekyll,wadaries/jekyll,bsmr-ruby/jekyll,jmhardison/jekyll,LuoPX-15510486969/jekyll,brint/jekyll,mnuessler/jekyll,Teino1978-Corp/jekyll,Strangehill/jekyll,alex-kovac/jekyll,xiebinhqy/jklly_china,rongl/jekyll,tomjohnson1492/jekyll,ryanshaw/jekyll,rovrevik/jekyll,Kinghack/kinghack.github.com,tillgrallert/jekyll,richsoni/jekyll,tugberkugurlu/jekyll,kimeng/jekyll,cyberid41/jekyll,naughtyboy83/jekyll,mnuessler/jekyll,mrb/jekyll,ewinkler/jekyll,xiaoshaozi52/jekyll,chiyodad/jekyll,m2candre/jekyll,AtekiRyu/jekyll,oresmus/jekyll,UniFreak/jekyllcn,yihangho/jekyll,ajhit406/jekyll,ducktyper/jekyll,digideskio/jekyll,ReachingOut/jekyll,royalwang/jekyll,nateberkopec/jekyll,iRoxx/jekyll,princeofdarkness76/jekyll,fengsmith/jekyllcn,rasa2011/rasa2011.github.io,zsyed91/jekyll,jaroot32/jekyll,garvitr/jekyll,kinlane/jekyll,matuzo/jekyll,hiteshsuthar/jekyll,mixxmac/jekyll,indraj/jekyll,tomasdiez/jekyll,imaustink/jekyll,adilapapaya/jekyll,yihangho/jekyll,zhangkuaiji/jekyllcn,Teino1978-Corp/Teino1978-Corp-jekyll,thejameskyle/jekyll,howkj1/jekyll,lcustodio/lcustodio.github.io_base,floydpraveen/jekyll,stomar/jekyll,tylermachen/jekyll,superve/jekyll,QuinntyneBrown/jekyll,foocoder/jekyll,eninya/jekyll,CorainChicago/jekyll,tomasdiez/jekyll,jekyll/jekyll,hartmel/jekyll,supriyantomaftuh/jekyll,xiongjungit/jekyll,tareq-s/jekyll,CPVPLachlan/CPVP-Blog,sideci-sample/sideci-sample-jekyll,Teino1978-Corp/Teino1978-Corp-jekyll,superve/jekyll,LuoPX-15510486969/jekyll,jaroot32/jekyll,chiyodad/jekyll,harrissoerja/jekyll,rebornix/jekyll,ReachingOut/jekyll,tamouse/jekyll,backendeveloper/jekyll,harrissoerja/jekyll,codeclimate-testing/jekyll,pmarsceill/jekyll,alfredxing/jekyll,ajhit406/jekyll,EddieDow/jekyll,goodtouch/jekyll,MauroMrod/jekyll,ls2uper/jekyll,dansef/jekyll,tillgrallert/jekyll,derekgottlieb/jekyll,jaybe-jekyll/jekyll,iRoxx/jekyll,christophermanning/jekyll,abhilashhb/jekyll,x-way/jekyll,ajhit406/jekyll,thetaxman/jekyll,matuzo/jekyll,ewinkler/jekyll,lazycai/lazycai.github.com,royalwang/jekyll,marrujoalex/jekyll,rajrathore/jekyll,ZDroid/jekyll,wentixiaogege/jekyll,kuangyeheng/jekyll,krahman/jekyll